package com.chuantou.yuba.api.to;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class BDLocationTO implements Parcelable {
	// 经度
	@SerializedName("lng")
	private double longitude;
	// 纬度
	@SerializedName("lat")
	private double latitude;

	public BDLocationTO() {
	}

	public BDLocationTO(Parcel source) {
		this.latitude = source.readDouble();
		this.longitude = source.readDouble();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(latitude);
		dest.writeDouble(longitude);

	}

	public static final Creator<BDLocationTO> CREATOR = new Creator<BDLocationTO>() {

		@Override
		public BDLocationTO[] newArray(int size) {
			return new BDLocationTO[size];
		}

		@Override
		public BDLocationTO createFromParcel(Parcel source) {
			return new BDLocationTO(source);
		}
	};

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

}
